home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970326-19970626 / 000244_news@newsmaster….columbia.edu _Thu May 29 11:54:44 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA01975
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 29 May 1997 11:54:43 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA19698
  7.     for kermit.misc@watsun; Thu, 29 May 1997 11:54:43 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: !READ
  12. Date: 29 May 1997 15:54:40 GMT
  13. Organization: Columbia University
  14. Lines: 37
  15. Message-ID: <5mk8s0$j7g$1@newsmaster.cc.columbia.edu>
  16. References: <1997May29.161158@merlin.ecid.cig.mot.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7094
  19.  
  20. In article <1997May29.161158@merlin.ecid.cig.mot.com>,
  21. Robert Cornell <cornellr@merlin.ecid.cig.mot.com> wrote:
  22. : I am having a little difficulty reading from commands that only output a
  23. : single line such as crypt.  I have a program that generates a logfile name.
  24. : from ksh...
  25. : $ rat -y
  26. : /opt/rat/log/none-cornellr.log
  27. : from kermit...
  28. : C-Kermit>open !read rat -y
  29. : C-Kermit>read line 
  30. : C-Kermit>echo \m(line)
  31. : C-Kermit>
  32. : Whereas:
  33. : C-Kermit>open !read ls -l
  34. : C-Kermit>read line 
  35. : C-Kermit>echo \m(line)
  36. : total 1768
  37. : The manual doesn't give much away, just a VMS dir example!
  38. : I'm sure this ain't a bug, what am I missing?
  39. The definition of READ and !READ are that they read a "line", a line
  40. being some text terminated by a line terminator such as LF, so Kermit
  41. is behaving as documented.
  42.  
  43. However, this definition is probably a bit too strict.  If you have source
  44. code, you can apply Patch 34 from the PATCHES file:
  45.  
  46.   http://www.columbia.edu/kermit/f/PATCHES
  47.  
  48. This allows the last or only line to be successfully read even if it is
  49. not properly terminated.
  50.  
  51. - Frank